﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Share/AccMaster.Master" AutoEventWireup="true"
    CodeBehind="fbeginingSubdiary.aspx.cs" Inherits="MixScriptWeb.Accounting.fbeginingSubdiary" MaintainScrollPositionOnPostback="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="padding-left: 10px;">
        <h2 class="jquery_tab">
            <asp:Label ID="lblTitle" runat="server" Text="Beginning Subsidiary Ledger" Font-Bold="True"></asp:Label>
        </h2>
        <br />
        <table width="50%" class="table-ui">
            <tr>
                <td style="width: 25%">
                    <asp:RadioButton ID="rbBank" Text="Bank" runat="server" Checked="true" GroupName="group"
                        OnCheckedChanged="rbBank_CheckedChanges" AutoPostBack="true" />
                </td>
                <td style="width: 25%">
                    <asp:RadioButton ID="rbCustomer" Text="A/R Customer" runat="server" GroupName="group"
                        Checked="false" OnCheckedChanged="rbCustomer_CheckedChanges" AutoPostBack="true" />
                </td>
                <td style="width: 25%">
                    <asp:RadioButton ID="rbEmployee" Text="A/R Employee" runat="server" GroupName="group"
                        Checked="false" OnCheckedChanged="rbEmployee_CheckedChanges" AutoPostBack="true" />
                </td>
                <td style="width: 25%">
                    <asp:RadioButton ID="rbSupplier" Text="A/P Supplier" runat="server" GroupName="group"
                        Checked="false" OnCheckedChanged="rbSupplier_CheckedChanges" AutoPostBack="true" />
                </td>
            </tr>
            <tr>
                <td colspan="4">
                </td>
            </tr>
        </table>
        <asp:Panel ID="Panel1" runat="server" Height="200px" Width="100%" ScrollBars="Auto"
            CssClass="table-ui">
            <asp:GridView ID="gvmaster" runat="server" AutoGenerateColumns="false" DataKeyNames="acctnum"
                Width="100%" CssClass="gridview" OnSelectedIndexChanged="gvMaster_SelectedChanges">
                <EmptyDataTemplate>
                    No Data To Shown</EmptyDataTemplate>
                <AlternatingRowStyle CssClass="alt" />
                <Columns>
                    <asp:CommandField ShowSelectButton="true" SelectText="Select" HeaderText="Select" />
                    <asp:BoundField HeaderText="Accounts" DataField="acctnum" ItemStyle-Width="5%" />
                    <asp:BoundField HeaderText="Description" DataField="acctname" ItemStyle-Width="40%" />
                    <asp:BoundField HeaderText="D/C" DataField="dbcd" ItemStyle-Width="5%" />
                    <asp:BoundField HeaderText="Cur" DataField="currency" ItemStyle-Width="10%" />
                    <asp:BoundField HeaderText="Debit" DataField="debet" ItemStyle-Width="20%" />
                    <asp:BoundField HeaderText="Credit" DataField="kredit" ItemStyle-Width="20%" />
                </Columns>
                <EditRowStyle BorderColor="Silver" BorderStyle="Solid" />
                <FooterStyle CssClass="ft" />
                <PagerStyle BorderStyle="None" BorderWidth="0px" HorizontalAlign="Center" />
            </asp:GridView>
        </asp:Panel>
        <table width="100%" class="table-ui">
            <tr>
                <td colspan="4">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <h1 class="jquery_tab">
                        <asp:Label ID="lblSubName" runat="server" />
                    </h1>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    &nbsp;
                </td>
            </tr>
        </table>
        <asp:Panel ID="pnlSub" runat="server" Height="200px" Width="100%" ScrollBars="Auto"
            CssClass="table-ui">
            <asp:GridView ID="gvSub" runat="server" AutoGenerateColumns="false" DataKeyNames="code"
                Width="100%" CssClass="gridview" OnSelectedIndexChanged="gvMaster_SelectedChanges">
                <EmptyDataTemplate>
                    No Data To Shown, Please select account first</EmptyDataTemplate>
                <Columns>
                    <asp:BoundField HeaderText="Code" DataField="code" ItemStyle-Width="10%" />
                    <asp:BoundField HeaderText="Description" DataField="name" ItemStyle-Width="30%" />
                    <asp:BoundField HeaderText="D/C" DataField="dbcd" ItemStyle-Width="10%" />
                    <asp:BoundField HeaderText="CUR" DataField="currency" ItemStyle-Width="10%" />
                    <asp:TemplateField HeaderText="Debit" ItemStyle-Width="12%">
                        <ItemTemplate>
                            <asp:TextBox ID="txtDebit" runat="server" Text='<%# Bind("debet") %>' Width="100%" Height="100%" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Credit" ItemStyle-Width="12%">
                        <ItemTemplate>
                            <asp:TextBox ID="txtCredit" runat="server" Text='<%# Bind("kredit") %>' Width="100%" Height="100%" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EditRowStyle BorderColor="Silver" BorderStyle="Solid" />
                <FooterStyle CssClass="ft" />
                <PagerStyle BorderStyle="None" BorderWidth="0px" HorizontalAlign="Center" />
            </asp:GridView>
            
        </asp:Panel>
            <div>
                <asp:Button ID="btnReset" runat="server" Text="Reset" PostBackUrl="~/Accounting/fbeginingSubdiary.aspx" />
                <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />
            </div>
    </div>
</asp:Content>
